import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/common.css'
import Vant from 'vant';
import 'vant/lib/index.css';
let app = createApp(App)

// 定义一个修改全局主题色的指令
app.directive('main-color', {
    beforeMount(el, {value}) {
        el.style.background = value
    },

    updated(el, {value}) {
        el.style.background = value
    }
})
app.use(store).use(router).use(Vant).mount('#app')
